package com.aloda.orangebank.service;

import com.aloda.orangebank.pojo.Admin;
import com.aloda.orangebank.pojo.PageBean;
import com.aloda.orangebank.pojo.User;

import java.time.LocalDateTime;
import java.util.List;

public interface SysAdminService {
    Admin login(Admin admin);

    List<User> normalTable();

    int getTotals();

    PageBean page(Integer page, Integer pageSize, String username, LocalDateTime begin, LocalDateTime end);

    void cancelUser(String username);

    PageBean pageCancel(Integer page, Integer pageSize, String username, LocalDateTime beginInBeijingTz, LocalDateTime endInBeijingTz);

    void recoverUser(Integer id);

    void deleteUser(String username);
}
